﻿<Window x:Class="ResPackClient.AddFamily"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{StaticResource STR_DLG_ADD_FAMILY}" 
        Style="{StaticResource STYLE_TOOLBOX}" 
        WindowStartupLocation="CenterOwner"       
        Height="280" Width="220">
    
    <Grid>
        
        <StackPanel>
            <TextBlock Text="{StaticResource STR_DLG_NAME_FAMILY}"></TextBlock>
            <TextBox Name="_txtFamilyName"></TextBox>
            <TextBlock Text="{StaticResource STR_DLG_DESC_FAMILY}"></TextBlock>
            <TextBox Name="_txtFamilyDesc" Style="{StaticResource STYLE_DLG_MULTI}"></TextBox>
            <StackPanel Style="{StaticResource STYLE_DLG_BT}">
                <Button Content="{StaticResource STR_BT_OK}" IsDefault="True" Click="OnOk" IsEnabled="{Binding ElementName=_txtFamilyName,Path=Text.Length}"></Button>
                <Button Content="{StaticResource STR_BT_CANCEL}" IsCancel="True"></Button>
            </StackPanel>
        </StackPanel>
        
    </Grid>
</Window>
